//********************************************************************************************************************//
//ORGANIZATION:
//AUTHOR: bpeng(bogers.peng@gmail.com)
//SUMMARY:
//********************************************************************************************************************//
#include "../AbstractMethodException.h"

using namespace Native::System;

CAbstractMethodException::CAbstractMethodException()
{
}

CAbstractMethodException::CAbstractMethodException(C_ABSTRACT_METHOD_EXCEPTION& that) :
    CException(that)
{
}

CAbstractMethodException::CAbstractMethodException(C_ABSTRACT_METHOD_EXCEPTION&& that) :
    CException(that)
{
}

CAbstractMethodException::CAbstractMethodException(C_SCENE& scene, WSTRING& detail)
{
    wchar_t message[MAX_MESSAGE_LENGTH] = {0};

    wsprintf(message, L"Call abstract method:[%s]", scene.Method().c_str());

    Append(CCase(scene, message, EMPTY_STRING, detail));
}